﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Ex03.GarageLogic
{
    public class FuelBus : FuelVehicle
    {
        private Bus m_Bus;

        public FuelBus(
            string i_ModelName,
            string i_LicensingNumber,
            List<Wheel> i_Wheels,
            eFuelType i_FuelType,
            float i_MaxFuelLitresAmount,
            int i_MaxPassengerCount,
            bool i_GuideSeatExists)
            : base(i_ModelName, i_LicensingNumber, i_Wheels, i_FuelType, i_MaxFuelLitresAmount)
        {
            m_Bus = new Bus(i_MaxPassengerCount, i_GuideSeatExists);
        }

        public int MaxPassengerCount
        {
            get { return m_Bus.MaxPassengerCount; }
        }

        public bool GuideSeatExists
        {
            get { return m_Bus.GuideSeatExists; }
        }

        public override Dictionary<string, string> GetAllProperties()
        {
            Dictionary<string, string> properties = base.GetAllProperties();

            properties.Add("Maximal Allowed Number Of Passengers", m_Bus.MaxPassengerCount.ToString());
            properties.Add("Guide Seat Exists", m_Bus.GuideSeatExists ? "Yes" : "No");
            properties.Add("Vehicle Type", "Fuel Bus");

            return properties;
        }
    }
}